#pragma once

#include "ClassType.h"
#include <string.h>
#include <QString>
#include <vector>

using namespace std;

class RasterLayer;
class CSamplesEntity
{

public:
	float j_fTrainingRate;
	QString j_csInputDataPath;
	QString j_nClassifyId;
	bool j_bOutShpTag;
	QString j_csOutputDir;
	QString j_csInputShpPath;
	RasterLayer* pRasterLayer;
    
	
public:
	CSamplesEntity(void);
	~CSamplesEntity(void);

public:
	QString getShpName();
	bool FileExist(QString FileName);
	void deleteShpFiles(QString csShpFileName);
	virtual bool initByData();
	string cs2string(QString cstr);
	virtual bool processFiles(bool bInitialedTag, vector<int> &fieldsVector, ClassType classType);
};

